<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>NoneOS</title>
    <script src="/packages/libs/ofa/ofa.js#debug"></script>
    <link rel="stylesheet" href="/packages/others/colors.css" pui-colors />
    <style>
      html,
      body {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
      }

      body {
        /* font: 400 1em/1.8 -apple-system, BlinkMacSystemFont, Segoe UI,
          Microsoft Yahei, Helvetica, Arial, sans-serif, Apple Color Emoji,
          Segoe UI Emoji; */
        font: 16px / 24px ui-sans-serif, -apple-system, "system-ui",
          "Segoe UI Variable Display", "Segoe UI", Helvetica, "PingFang SC",
          "Microsoft YaHei", Helvetica, "Apple Color Emoji", Arial, sans-serif,
          "Segoe UI Emoji", "Segoe UI Symbol";
        -webkit-font-smoothing: auto;
      }

      #snackbar-container {
        box-sizing: border-box;
        padding-bottom: 40px;
      }
    </style>
  </head>
  <body>
    <o-root-provider name="pui"></o-root-provider>
    <l-m src="/packages/none-os/none-os.html"></l-m>
    <none-os></none-os>
    <script type="module">
      const load = lm(import.meta);
      (async () => {
        const { get } = await load("/packages/fs/main.js");

        try {
          const hashes = await get("packages/hashes.json");

          if (!hashes) {
            location.href = "/install";
          }
        } catch (err) {
          location.href = "/install";
          return;
        }

        load("/sw/register.js");
      })();
    </script>
    <!-- <script src="sw/register.js" type="module"></script> -->
  </body>
</html>
